#include <iostream>
using namespace std;

// write your code here......
void Swap(int &x, int &y){
    int temp = x;
    x = y;
    y = temp;
}

int main() {

    int m, n;
    cin >> m;
    cin >> n;

    // write your code here......
    Swap(m, n);

    cout << m << " " << n << endl;

    return 0;
}

/*编写一个函数，实现两个整数的交换，要求采用引用的方式实现。*/